package com.example.oauth2.base.service.impl;

import com.example.oauth2.base.domain.SsoPermission;
import com.example.oauth2.base.domain.SsoUser;
import com.example.oauth2.base.repository.SsoPermissionRepository;
import com.example.oauth2.base.repository.SsoUserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SsoPermissionService {
    @Autowired
    private SsoPermissionRepository ssoPermissionRepository;

    public List<SsoPermission> selectByUserId(String userId){
        List<SsoPermission> tbPermissions = ssoPermissionRepository.selectByUserId(userId);
        return tbPermissions;
    }
}
